package com.erpanderp.pr.model.entity

import com.erpanderp.pr.util.Constants

class ValueHelp {

	static hasMany=[valueHelpValues:ValueHelpValue]

	String valueHelp		
	String displayName		
	String description	
	String status=Constants.STATUS_ACTIVE	
	
	Date dateCreated			
	Date lastUpdated		
	String createdBy	
	String lastUpdatedBy		


    static constraints = {
    	valueHelp(unique:true, inList:[Constants.VALUE_HELP_DOCUMENT_TYPE, Constants.VALUE_HELP_ACCOUNT_ASSIGNMENT_CATEGORY, Constants.VALUE_HELP_ITEM_CATEGORY, Constants.VALUE_HELP_MATERIAL, Constants.VALUE_HELP_QUANTITY, Constants.VALUE_HELP_UNIT, Constants.VALUE_HELP_MATERIAL_GROUP, Constants.VALUE_HELP_PLANT, Constants.VALUE_HELP_STORAGE_LOCATION, Constants.VALUE_HELP_PURCHASE_GROUP, Constants.VALUE_HELP_DESIRED_VENDOR, Constants.VALUE_HELP_GL_ACCOUNT, Constants.VALUE_HELP_COST_CENTER, Constants.VALUE_HELP_ORDERD_DETAIL, Constants.VALUE_HELP_NETWORK])
		displayName()
		description()
    	status(inList:[Constants.STATUS_ACTIVE, Constants.STATUS_INACTIVE])
    }
}
